package com.ibm.android.validator;

public class DateValidator {
	
	public static boolean isAValidDate(String date) {
		if (date != null) {
	      int length = date.length();
	      String[] time = date.split("/");
	      
	      for(int i=0; i<time.length; i++) {
	    	  try {
	    		  Integer.parseInt(time[i]);
	    	  }
	    	  catch(Exception e) {
	    		  return false;
	    	  }
	      }	      
	      return true;
	    }
	    else 
	    	return false;
	  }

}
